/*
 * DIM-SUM操作系统 -- 缓存 页
 *
 * Copyright (C) 2023 国科础石(重庆)软件有限公司
 *
 * 作者: Dong Peng <w-pengdong@kernelsoft.com>
 *
 * License terms: GNU General Public License (GPL) version 3
 *
 */

#include <dim-sum/bitops.h>

#include <asm/cacheflush.h>

void flush_dcache_page(struct page_frame *page)
{
	if (test_bit(PG_dcache_clean, &page->flags))
		atomic_clear_bit(PG_dcache_clean, &page->flags);
}

void flush_dcache_range(unsigned long start, unsigned long end)
{
	local_flush_icache_all();
}
